package com.qf.mywatch.model;

/**
 * Created by Administrator on 2017/1/6.
 */

public class Path {
    //    首页ViewPager(5个):
    public static final String HOME_VIEWPAGER = "http://api.ttime.com/sg/SgIndex/Carouel?token=536f061da169d761fa3fa6f1b53df3a4&v=3.0.1";

    //    详情(需要传link):
//    头部:
    public static final String getInformationDetailHeadPath(String id) {
        return "http://api.ttime.com/v3/CousinSaidApi/TtimeActivity?token=536f061da169d761fa3fa6f1b53df3a4&v=3.0.1&id=" + id;
    }

    //    首页专区:
    public static final String HOME_AREA = "http://api.ttime.com/sg/SgIndex/Recommended?token=536f061da169d761fa3fa6f1b53df3a4&v=3.0.1";

    //男表折扣区, 女士潮流够, 时尚表(分页加载page=?,详情同首页的ListView):
    public static final String getHomeArea_A_Path(int page,String A) {
        return "http://api.ttime.com/sg/SgIndex/ArticleListCNum?token=536f061da169d761fa3fa6f1b53df3a4&v=3.0.1&page=" + page + "&limit=10&place="+A;
    }
    //    注意:整体是ListView,有两种布局根据template_id的不同):
//    在线试戴(详情同首页的ViewPager)
    public static final String getHomeArea_B_Try_Path(int page){
        return "http://api.ttime.com/v3/MenuApi/menu?token=536f061da169d761fa3fa6f1b53df3a4&v=3.0.1&type=2&page="+page;
    }
    //淘宝直播,特卖专区(详情同首页的ViewPager):
    public static final String getHomeArea_B_Path(int page){
        return "http://api.ttime.com/v3/SaleApi/sale?token=536f061da169d761fa3fa6f1b53df3a4&v=3.0.1&page="+page;
    }

    //    首页ListView列表区:(分页加载page=?)
    public static final String getHomeListViewPath(int index) {
        return "http://api.ttime.com/sg/SgArticleList/ArticleList?token=536f061da169d761fa3fa6f1b53df3a4&v=3.0.1&page=" + index + "&limit=10";
    }

    //    每条详情(需要传id=192.....):
//    头部的大图片和底部的导航链接:
    public static final String getHomeListViewDetailTabPath(String id) {
        return "http://api.ttime.com/sg/SgArticleInfo/ArticleDetails?token=536f061da169d761fa3fa6f1b53df3a4&v=3.0.1&aid=" + id + "&osType=Android";
    }

    //    中间部分的详情(html网页版):
    public static final String getHomeListViewDetailPath(String id) {
        return "http://h5.ttime.com/share/sgarticle.php?token=536f061da169d761fa3fa6f1b53df3a4&v=3.0.1&id=" + id + "&flag=app";
    }

    /**
     * 资讯页面
     */
    //第一层数据
    public static String getInformationPath(int num) {
        return "http://api.ttime.com/v3/InfoApi/Info?token=9a3b5086e5e6482ffdcc3d87284712c0&v=3.0.1&page=" + num + "&order_type=";
    }

    //第二层数据
    public static String getInformationDetailPath(String id) {
        return "http://h5.ttime.com/share/article.php?token=9a3b5086e5e6482ffdcc3d87284712c0&v=3.0.1&id=" + id + "&flag=app";
    }

    //了解详情页面
    public static String knowDetailPath=" http://h5.ttime.com/share/article_statement.html?token=9a3b5086e5e6482ffdcc3d87284712c0&v=3.0.1";

    /**
     * 表库----字母排列的数据
     * */
    public static String getDataAboutLatter(){
        return "http://api.ttime.com/searchApi/screenPchile? token=9a3b5086e5e6482ffdcc3d87284712c0&uid=32283&flag=app&from=null&v=3.0.1&cityid=0";
    }

    //    II:详情页（第二层）
    public static String getDataAboutLatterDetail(String id) {
        return "http://api.ttime.com/searchApi/brandDetail?token=9a3b5086e5e6482ffdcc3d87284712c0&uid=32283&flag=app&v=3.0.1&cityid=0&brand_id=" + id +"&baike=1";
    }
//    注：id为第一层里传过来的brand_id

//    III:详情页（第三层）
//    http://api.ttime.com/v3/productApi/productDetails?token=9a3b5086e5e6482ffdcc3d87284712c0&product_id="+id"&v=3.0.1&cityid=0&uid=32283&api_version=2.9.1
    /**
     * 广场页面
     * */

    //广场-----ViewPager
    public static final String getSquareHeadPath="http://api.ttime.com/sns/Carousel/Carousel?token=9a3b5086e5e6482ffdcc3d87284712c0&v=3.0.1&api_version=2.10.0&module=carou_img";
    //广场-----热门话题
    public static  final String getSquareHotPath="http://api.ttime.com/sns/subject/hotsubject?token=9a3b5086e5e6482ffdcc3d87284712c0&v=3.0.1&api_version=2.10.0&module=hot_subject&limit=4";
    //广场-----热门话题（更多）
    public static final String getSquareHotMorePath="http://api.ttime.com/sns/subject/hotsubject?token=9a3b5086e5e6482ffdcc3d87284712c0&v=3.0.1&api_version=2.10.0&module=hot_subject";

    //广场---ListView
    public static  String getSquarePath(int num){
        return   "http://api.ttime.com/sns/feed/index?token=9a3b5086e5e6482ffdcc3d87284712c0&v=3.0.1&order=&api_version=2.10.0&limit=10&feed_id=&page="+num;
    }
    //广场----头部详情
//    public static String getSquareHeadDetailPath(String id,int num){
//        return "http://api.ttime.com/sns/subject/feed?subject_id="11&token=9a3b5086e5e6482ffdcc3d87284712c0&v=3.0.1&feed_id=&order=create_time_desc&limit=10&api_version=2.10.0&page=1;
//    }
    //广场-----style
    public static String getSquareStylePath(String id,int num){
        return "http://api.ttime.com/sns/feed/get?token=9a3b5086e5e6482ffdcc3d87284712c0&v=3.0.1&tag_id=11&tag_name=%E6%89%8B%E8%A1%A8%E6%8E%A7&feed_id="+id+"&order=create_time_desc&limit=10&api_version=2.10.0&page="+num;
    }
}
